package com.redis.demo;

import java.io.Serializable;

import com.redis.demo.utils.MessageType;

public class Message implements Serializable{

	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;
	private MessageType type; //消息类型
	private String topic; //topic
	private Object message; //消息体
	public MessageType getType() {
		return type;
	}
	
	public void setType(MessageType type) {
		this.type = type;
	}
	
	public String getTopic() {
		return topic;
	}
	
	public void setTopic(String topic) {
		this.topic = topic;
	}
	
	public Object getMessage() {
		return message;
	}
	
	public void setMessage(Object message) {
		this.message = message;
	}

	@Override
	public String toString() {
		return "Message [type=" + type + ", topic=" + topic + ", message=" + message + "]";
	}

}
